package com.pretty.test.controller.system.menu.wrapper;


import com.pretty.test.controller.system.menu.vo.MenuListVO;
import com.pretty.test.entity.PetsMenu;
import com.pretty.test.utils.otherutils.BeanUtil;
import com.pretty.test.utils.wrapper.BaseEntityWrapper;

import java.util.Objects;

/**
 * 系统菜单列表包装类
 * @author dujianyu
 * @since 2021-04-09
 */
public class MenuListWrapper extends BaseEntityWrapper<PetsMenu, MenuListVO> {
    public static MenuListWrapper build(){
        return new MenuListWrapper();
    }

    @Override
    public MenuListVO entityVO(PetsMenu entity) {
        MenuListVO vo = Objects.requireNonNull(BeanUtil.copy(entity, MenuListVO.class));
        return vo;
    }
}
